@forward "../../../node_modules/@material/elevation/mixins" show elevation;

$primary: #6200ee;
$red: #dc3545;
$green: #28a745;

@function _ta($top, $bottom) {
  @return if($top < $bottom, $top / $bottom, (255 - $top) / (255 - $bottom));
}
@function _tc($top, $bottom, $alpha) {
  @return ($top - $alpha * $bottom) / (1 - $alpha);
}
@function transparentify($top, $bottom: #fff) {
  $tr: red($top); $tg: green($top); $tb: blue($top);
  $br: red($bottom); $bg: green($bottom); $bb: blue($bottom);
  $a: min(1, _ta($tr, $br), _ta($tg, $bg), _ta($tb, $bb));
  @return rgba(_tc($tr, $br, $a), _tc($tg, $bg, $a), _tc($tb, $bb, $a), 1 - $a);
}

$table-border: 1px solid unquote('#0000001f');
